package com.pay.bean;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class FreePayResult implements IPayResult, Serializable {

	private Long originPayNotifyId;

	/**
	 * 第三方支付的交易编号。
	 */
	@Setter
	private String tradeNo;

	/**
	 * 商城订单的交易编号。
	 */
	@Setter
	private String outTradeNo;

	@Setter
	private String payMode;

	@Setter
	private String sellerId;

	@Setter
	private String username;

	@Setter
	private BigDecimal paidAmount;

	@Setter
	private Date payTime;

	@Getter
	@Setter
	private List<Long> orderIds;


	@Override
	public Long getOriginPayNotifyId() {
		return originPayNotifyId;
	}

	@Override
	public void setOriginPayNotifyId(Long id) {
		this.originPayNotifyId = id;
	}

	@Override
	public String getTradeNo() {
		return tradeNo;
	}

	@Override
	public String getOutTradeNo() {
		return outTradeNo;
	}

	@Override
	public String getPayMode() {
		return payMode;
	}

	@Override
	public String getTradeStatus() {
		return "SUCCESS";
	}

	@Override
	public String getSellerId() {
		return sellerId;
	}

	@Override
	public String getBuyerId() {
		return username;
	}

	@Override
	public BigDecimal getPaidAmount() {
		return paidAmount;
	}

	@Override
	public Date getPayTime() {
		return payTime;
	}

	@Override
	public boolean isPaid() {
		return true;
	}

	@Override
	public boolean isQueryResult() {
		return false;
	}

	@Override
	public TradeState getStandardTradeStatus() {
		return TradeState.TRADE_SUCCESS;
	}
}
